﻿@{
    ViewBag.Title = "Index";
}

@this.Partial("log_js")
<style type="text/css">

.img_thum{width:100px;margin-right:5px;}
.img_red{border:1px solid #ff6a00;}

</style>
<div style="width:100%;">
    <div class="topPanel">
        <div class="toolbar">
            <a class="a-btn-refresh" onclick="$ace.reload()"></a>
            <!--<button class="a-btn-edit" data-bind="click:edit,disable:!dataTable.selectedModel()">修改</button>
    <button class="a-btn-add" data-bind="click:add">添加</button>
    <button class="a-btn-delete" data-bind="click:del,disable:!dataTable.selectedModel()">删除</button>
    <button class="a-btn-edit" data-bind="click:openRevisePasswordDialog,disable:!dataTable.selectedModel()" style="display:none;">重置密码</button>-->
            <button class="btn btn-default" onclick="window.location.href = '/Wiki/Users/Index';">返回用户列表</button>
            <button class="btn btn-default" onclick="window.location.href = '/Wiki/Users/Export';">导出充值记录</button>
        </div>
        <div class="search">
            <table class="form-table" style="width:auto;">
                <tr>
                    <td>
                        <input type="text" class="a-control Wdate" placeholder="起始日期" style="width: 150px;" data-bind="dateString:searchModel().time1">
                    </td>
                    <td>
                        <input type="text" class="a-control Wdate" placeholder="结束日期" style="width: 150px;" data-bind="dateString:searchModel().time2">
                    </td>
                    <td>
                        <input type="text" class="a-control" placeholder="请输入要查询关键字" style="width: 200px;" data-bind="value:searchModel().keyword">
                    </td>
                    <td>
                        <button type="button" class="a-btn-search" data-bind="click:search"></button>
                    </td>
                </tr>
            </table>
        </div>
    </div>


    <div>
        <table class="table table-hover" data-bind="with:dataTable">
            <thead>
                <tr>
                    <th style="width:20px;"></th>
                    <th>账号</th>
                    <th>姓名</th>
                    <th>手机号码</th>
                    <th>充值项目</th>
                    <th>充值时间</th>
                    <th>充值金额</th>
                    <th>单号</th>
                    <th>有效期</th>
                </tr>
            </thead>
            <tbody data-bind="foreach:models">
                <tr data-bind="click:$parent.selectRow">
                    <td data-bind="text:$parent.getOrdinal($index())"></td>
                    <td data-bind="text:Mobile"></td>
                    <td data-bind="text:TrueName"></td>
                    <td data-bind="text:Mobile"></td>
                    <td data-bind="text:Title"></td>
                    <td data-bind="timeString:transaction_date"></td>
                    <td data-bind="text:transaction_price"></td>
                    <td data-bind="text:transaction_id"></td>
                    <td data-bind="timeString:expire_date"></td>
                </tr>
            </tbody>
            @this.Partial("_tfoot")
        </table>
    </div>
</div>
<dialogbox data-bind="with:dialog">
    <form id="form1">
        <table class="form-table">
            <tr>
                <td class="form-title">手机号码</td>
                <td class="form-value">
                    <input name="Mobile" id="Mobile" type="text" class="a-control required" placeholder="" data-bind="value:model().Mobile" />
                </td>
            </tr>
             

        </table>
    </form>
</dialogbox>

 